[Ruby] Add problem #4