A chat app keeps messages in a list, oldest first. The preview shows the newest n messages, still oldest-to-newest.
Task: write latest_messages(inbox, n) that returns the last n messages of inbox, in their original order.
n is between 0 and the number of messages. If n is 0, return an empty list.