add problem 13 ruby solution.