Whats wrong with my current approach

whats wrong with my current approach? with all my custom inputs, i am getting the correct output. but none of the tests are passing.