Auriga IT Interview Question

sorting, patterns, patterns with one loop, google puzzles