Texas Instruments interview question

some puzzles.