Novatech Robo interview question

write a code for keyapd in embedded C