Rafael interview question

Q1: write a function that swaps two numbers, and two pointers. Q2: write a function that returns the height of a binary tree. Q3: pick a system and draw a diagram of the actors and the data being passed between them, including external/internal factors that can affect the actors/data.