All digital circuits can be realized using only
Check here
https://gateoverflow.in/556/gate1992_02-ii