Microchip Technology Interview Question

Technical inteview was tough