Monotype Interview Question

1st Round:- Gave one problem, ask to make one program.