static bool isRoundOrCurlyBracketed_simple(S s) {
  ret startsWith(s, "(") && endsWith(s, ")")
    || startsWith(s, "{") && endsWith(s, "}");
}