class Hamming
def self.compute(a, b)
raise ArgumentError unless a.length == b.length
(0..a.length).count {|i| a[i] != b[i]}
end