Genesys Interview Question

Pattern printing code,Puzzles