Texas Instruments Interview Question

some puzzles.