There is a hotel that may accommodate 4 guests. Each line of the input contains the name or the names of the guests arriving at the hotel on a certain day.
Read the names of the guests from the input and output each name on a separate line and in reverse order starting with the last arrived guest. Note that the order of the arriving guests and the number of days are not pre-defined.
Tip: You don't need to use anything advanced for this task. Simply declare four strings and print them in reverse order.