Pregunta de entrevista de NexSoft Jakarta

How to create triangle like object by using single character and using loops?