Accenture Interview Question

Achieve setinterval with settimeout js program