Capgemini interview question

Based on c and linux