1mg interview question

write own custom handler