Accenture Interview Question

Print the given star pattern Find the magic number(magic number explained in their terms)