I wrote O(n) simple solution for this problem and every case I tried is working just fine but my solution is giving WA on 2nd test case. Please help!
I wrote O(n) simple solution for this problem and every case I tried is working just fine but my solution is giving WA on 2nd test case. Please help!