Tech Mahindra interview question

Pattern printing for my name.