Problem Link: GDTURN Problem - CodeChef
why my submission got wrong i have sucessfully passed the test cases