CAST Interview Question

Program to implement closure?