Interland interview question

pattern-printing program and explain my logic