Cognizant interview question

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