American Airlines Interview Question

Write the word “October” and write code that would sort the letters in alphabetical order

Interview Answer

Anonymous

Jan 24, 2022

Create an array with the characters of the word and then use a for loop to iterate through the array then sort.

1