NTT DATA interview question

what are the basic gates? explain them with practical implementation.