Barclays interview question

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