Techolution interview question

write a code to implement Timeout decorator