Chef left right problem...what is the problem with my code>? showing wrong answer

//code removed(live contest)

Please delete this post! You are not supposed to discuss live contest on the forums. You won’t get any answers and in addition to that other people might pick up a clue or two from your code and solve the problem while you continue to struggle to debug your code!

@shitiz_admirer: post your doubts after the contest.