$ 0 0 I am solving this problem.This is my solution : codeFor every case I could make, it gives correct answer. But on submission I get wrong answer.Please help what's wrong in the code. For which cases does the code go wrong?