add ruby solution for problem 1