Add ruby solution to problem 2 and update README with explanation