Pregunta de entrevista de Barclays

Given a string, find the first non-repeating character. Rotate an array by K positions.