CODETHON - ONEVALUE - Help needed

problem link.
I saw some solutions but couldn’t understand.
I just want to know what is the intuition and approach to this problem.
Are there similar problems?