Valeo interview question

Pattern printing