Technicolor interview question

C coding and embedded memory management