Cognizant Interview Question

Write a program corresponding to AND, OR, NOT digital gates