A Ruby solution for Minisculus Challenge