Adding ruby solution for challenge 2