CIBC Interview Question

How to construct a digital option?