Find first non-repeating character index | Goldman Sachs