Amdocs interview question

Pattern printing in any preferred language