add ruby solution for problem 1
tasks for problem 2 and 3