Continental interview question

To code in embedded c for different scenarios.