Create solutions for problem 1 in Objective C, Python and Erlang