Pergunta de entrevista da empresa Caterpillar

Pattern printing of x in any language