Can anyone tell me why i am getting wrong answer on test 6,i am not being able to wrap my head around what's really happening in test 6 This is the problem:https://codeforces.net/contest/454/problem/B This is my code:https://codeforces.net/contest/454/submission/273727396