Add #29 Ruby solution