Accenture interview question

Achieve setinterval with settimeout js program