Can you please check the errors in code as the test cases are not passing

Check now