Genius Minds interview question

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