Tried all the test cases all should be working hopefully!!