Wipro interview question

pattern making using loops