Added solution to problem 89 in erlang.