Deloitte interview question

Print a star pattern