static L indexesOfCharacters(S s, S chars) { new L x; int n = l(s); for i to n: if (contains(chars, s.charAt(i))) x.add(i); ret x; }