TCS interview question

Write for loop and settime out inside it