Frage im Vorstellungsgespräch bei Microchip Technology

they asked me to code a simple c utility function.