Passing all test cases.