Aquaform interview question

Linux . Problem solving, c program