Define a generic function invert which takes a generic List, inverts this collection and prints the list (with a line break at the end). You shouldn't change the original list here!
Example input
[hello, bonjour, guten tag]
Example output
[guten tag, bonjour, hello]