Add #145 Ruby solution