sbool allCharactersAre(S s, char c) { int n = l(s); for i to n: if (s.charAt(i) != c) false; true; }