Acc to me the solution is correct…but on submission all cases r wrong…please give me some test cases for which it is giving wring answer…I tried on some…and the answers were correct for them
https://ide.geeksforgeeks.org/tDlRZL8nx7
This is my code URL