Add ruby solution to problem 3 and update README explanation