CDK Global Interview Question

They asked me to write a small program in Java or C, or whichever language you are comfortable in.