Qmax Systems interview question

basic EEE and C program