Cognizant Interview Question

How do you implement a cubic algebraic expression using digital gates?