Frage im Vorstellungsgespräch bei Tata Consultancy Services

Write a code to print pattern (equilateral triangle)?