DSU based doubt

doubt ka short short description iss link pe hai “https://ideone.com/Gciw2v

pls share the problem link

https://hack.codingblocks.com/app/practice/1/627/problem

Pls elaborate ur code. I mean pls tell what u are trying to do?

Bhaiya explanation uss link pe jo code hai usse me hain. . .comment kar rakha hai starting ke lines me sab lekha hai