Satisfying all the test cases