Safran interview question

Questions from Pointers and Data Structure