problem : https://codeforces.com/contest/1354/problem/B
solution1 (failed) : https://codeforces.com/contest/1354/submission/109710078 solution2 (passed) : https://codeforces.com/contest/1354/submission/109540870
I am unable to understand why solution1 failed and solution2 passed, unable to see the test case on which it failed.