Capgemini Interview Question

Basic embedded C required.