State Street Interview Question

Write a array code to arrange the strings .