Pergunta de entrevista da empresa AdPushup

How will you implement setInterval function by just using setTimeout?