Valeo interview question

two microcontrollers communicate with as SPI communication protocol, write a code and draw the schematic