Accenture Interview Question

Peak of an array string permutations