Newgen Software interview question

One coding question to print the pattern. Some basic computer fundamentals.