What is wrong in CHPINTU?

Question. CodeChef: Practical coding for everyone
My solution. CodeChef: Practical coding for everyone

Read hidden traps of:

1 Like

@sunil_02

Testcase:

1
2 3
1 2
0 6

Your code outputs:
6

Correct Output:
0