Refactored initial solution
* use if/else instead of individual returns (since they're alternatives)
* remove cluttering puts