I have used a different approach, 2 test cases are failing and I am unable to understand where my code went wrong, I m sharing the code link as well for your reference.
I am ready to explain my code anytime at call, as I know it gets difficult to understand someone else’s code.
Please help me out