Logiology interview question

Pattern printing using any language