Hii, Thank you for reviweing.
Here is the question :- https://www.codechef.com/LTIME79B/problems/CHEALG ( december lunchtime )
Here is my solution link : https://www.codechef.com/viewsolution/28595282
Now, I don’t know why I got wrong answer because it worked in some of the test cases that I made,
So please, help me to find where I went wrong.