CIBC interview question

How to construct a digital option?