Deloitte Interview Question

Print a star pattern