Amity University Interview Question

Print a triangle with stars