Implementation of strcmp

O(N+M). N and M are the lengths of the two strings.