Chetu interview question

Print triangle pattern and some oops question.