Tessolve Interview Question

and gates, logic design, basic concepts