Quote Originally Posted by Robert Kosek
The flaw in the logic has to do with binary math. They add the first with the last element indices and then shift right all the way through the loop. Given which string doesn't match in the comparison either the beginning or ending index is manipulated, the start grows and the end shrinks. Don't you think that this could cause a few bugs? Why not do a for-loop?
Sounds like a failed attempt at binary search.