Question 9
A beaver built a machine that transforms a word as follows:
- If the number of letters is even, the word is sent to the box on the right.
- If the number of letters is odd, the word is sent to the box on the left to delete the first letter. It is then sent to the right-hand box.
- In the right-hand box, adjacent pairs of letters are swapped, after which the word is sent to the last box.
- In the last box, the letters are written in reverse order.
For example, putting “CONTEST” into the machine gives “STTEON”.

Figure labels: “Có lẻ chữ cái”=odd number of letters; “Xóa chữ cái đầu”=delete first letter; “Có chẵn chữ cái”=even number of letters; “Đổi chỗ 2 kí tự liền kề”=swap each adjacent pair; “Viết ngược lại cả chữ”=reverse the whole word.
What word results when “STORAGE” is put into the machine?
- If the number of letters is even, the word is sent to the box on the right.
- If the number of letters is odd, the word is sent to the box on the left to delete the first letter. It is then sent to the right-hand box.
- In the right-hand box, adjacent pairs of letters are swapped, after which the word is sent to the last box.
- In the last box, the letters are written in reverse order.
For example, putting “CONTEST” into the machine gives “STTEON”.

Figure labels: “Có lẻ chữ cái”=odd number of letters; “Xóa chữ cái đầu”=delete first letter; “Có chẵn chữ cái”=even number of letters; “Đổi chỗ 2 kí tự liền kề”=swap each adjacent pair; “Viết ngược lại cả chữ”=reverse the whole word.
What word results when “STORAGE” is put into the machine?