passing given test cases
passing all tests for 41A