Hii, Thank you for reviweing.
Here is the question :- CodeChef: Practical coding for everyone ( december lunchtime )
Here is my solution link : CodeChef: Practical coding for everyone
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.