Tessolve interview question

and gates, logic design, basic concepts