problem 020 solution