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