Mbed C programming - struggling with an exercise

Hello world, I and my few colleagues are struggling with these 3 exercises at college. Is there anyone who is very good with C and Mbed? We are using some protocols like CAN, UART, I2C, CRC… I would be very very very grateful if someone can help me solve this :pray: