Cybercom Creation interview question

Asked me about for loop pattern question