The verify function will check the location where your string1 mismatches string2. So in your example Henry and Harry the letter H matches with H, but the 2nd letter e does not match with a. So the verify function returns 2. For Ben and Henry, the 1st letter itself does not match, so the function returns 1.
... View more