Wipro interview question

Build AND and OR gates using NAND gates.