TEKsystems Interview Question

Print Star pattern and in how many ways you can solve it