Accenture interview question

Peak of an array string permutations