Shell interview question

Sort the letter, memorize the pattern