Cognizant interview question

WAP to print pattern in python