Ruby solution to an Uppercase Dojo