Texas Instruments interview question

based on basic digital circuits