TEKsystems Interview Question

for the coding part they asked us to be KISS i.e keep it simple sily :-P