leetcode problems in ruby