My code is similar, but he was using a boolean variable while I am using an integer variable for the check and to remove my flag. I don’t even know the person whose code is similar to mine. It’s possible that we used the same logic. Please check once
TEAM - CODECHEF