@Override
  public char[] cycle(char[] S, int first, int second, int third) {
    char temp = S[first];
    S[first] = S[second];
    S[second] = S[third];