HCLTech interview question

Implement full adder and explain its working