The given solution is breaking for the following test case on gfg 10 11 0 1 7 0 4 4 0 7 8 0 9 3 1 7 7 1 8 3 2 5 8 2 7 10 3 4 3 4 6 10 5 7 8
The given solution is breaking for the following test case on gfg
10 11
0 1 7
0 4 4
0 7 8
0 9 3
1 7 7
1 8 3
2 5 8
2 7 10
3 4 3
4 6 10
5 7 8