Domanda di colloquio di Microchip Technology

they asked me to code a simple c utility function.