Create hamming.rb

Submitted Solution for Hamming