Valeo interview question

Started with questions about Embedded systems concepts, microcontrollers, then to solve a problem using C language