Question 1
Study the pattern:
Input: cat dog bat ant
Output: ant bat cat dog
Now, what will be the output for:
Input: grape apple banana zebra
The machine applies 'alphabetical_sort' rule.
grape apple banana zebra → apple banana grape zebra
grape apple banana zebra → apple banana grape zebra