Pregunta de entrevista de GlobalLogic

A simple pattern program and an easy coding question.