Added answers for the test cases