Add #7 Ruby solution