Google interview question

How do you flip a binary tree? How do you reverse a linked list?