Nokia interview question

Recursion, Data structures, SQL