In this question I am getting wrong answer in one of the test case . here is my solution
any help would be appreciated .