10times interview question

Pattern Printing Question String based problem