CENSUS interview question

Technical challenge in C, memory allocation questions