Hamming: Updated example and changed exercise to use a function

Updated example to no longer consider strings of different lengths

Changed exercise to no longer use a class - See issue #29