Microchip Technology Interview Question

mostly based on the project given in the resume.