Amdocs interview question

WAP to print diamond pattern?