Fourth example continued. . .
Strategy: look at the characters of s one by one, starting from the beginning. Return as soon as c is found. Use a variable j to tell how much of s has been �scanned� (looked at).
General picture: c is not in s[0..j-1], i.e. c is not one of the first j characters of s, and 0 <= j <= s.length().
When j= s.length() or c = s[j].
j != s.length() && s.charAt(j) != c