A Ruby solution to Exercism.io's "Gigasecond" challenge