Microchip Technology interview question

Simple C tests