Hitachi interview question

Linq, oops, collections, program to get a pattern