Solutions for the oj.leetcode.com Problems in Ruby