can u please correct my code acc. to the approach…
test cases are not passing…
code link…
regards
@ManasxCOdE corrected and commented