Einfochips interview question

Digital logic and C programming questions