Einfochips interview question

not much difficult