Little help with for loop and pattern matching

One of your colleagues has already asked this: