Question 1
Input: zebra fish lion monkey ant
Step 1: fish zebra lion monkey ant
Step 2: fish lion zebra monkey ant
Step 3: fish lion monkey zebra ant
What will be the final output after complete sorting?
The words are arranged in alphabetical (dictionary) order. zebra fish lion monkey ant → ant fish lion monkey zebra