Liftoff Interview Question

Print a matrix in the given pattern.