Although, my code is working perfectly fine on local computer and during compilation on CodingBlocks, but all the test cases are failing on submission.
I tried to test this code on leetcode, but on leetcode this question is available for only premium-subscribers.
Can I know what is problem with my solution ?
