Solving failed test cases.