Genius Minds Interview Question

What is the code for this pattern (Pattern based question)