My ruby solution for exercism.io