print a list inverted