Qualcomm interview question

Embedded question: watchdog and c programming