Training: brackets, invert linked list