FARFETCH interview question

small exercise to correct a for loop