finished Find the Ways problem