Domanda di colloquio di Google

How do you figure out time and space complexity of recursive function?