Problem link: 102942 A
I am trying to solve the problem. I have written a code in C++ to solve that problem. But when I submitted it shows "wrong answer on test case