Frage im Vorstellungsgespräch bei AdPushup

How will you implement setInterval function by just using setTimeout?