List reversal example