Texas Instruments interview question

3 questions: state machine, designing adder from some logic gates and coding