sbool isRepeatedChar(S s) { if (empty(s)) false; char c = first(s); int n = l(s); for (int i = 1; i < l(s); i++) if (s.charAt(i) != c) false; true; }