Question 1
Study the pattern:
Input: hello world python
Output: olleh dlrow nohtyp
Now, what will be the output for:
Input: python java ruby
The machine applies 'reverse_words' rule.
python java ruby → nohtyp avaj ybur
python java ruby → nohtyp avaj ybur