i tried solving it but even though is got the right output; it didnt satisfy any of the test cases.
here is the link of what i did:
i tried solving it but even though is got the right output; it didnt satisfy any of the test cases.
here is the link of what i did: