AMI interview question

C, Data structures and Linux