[Ruby] Hamming exercise completed