Problem 20 solution added (using Erlang)