Deloitte interview question

Why would you use a for loop?