Microchip Technology interview question

Technical inteview was tough