Hamming function's return type shouldn't be Optional

In the Swift Hamming exercise, the return type of the compute function could be simplified by making it non-optional. Before PR 654, a nil return value was used to indicate that the input strings differed in length; now, that case is covered by the function throwing an error.

I’d be happy to create the PR to remove the optionality from the sources, tests, and example files.