Add #41 Ruby solution