All tests for both problems passed