Logistic Infotech interview question

Write a Python program for a common pattern printing question?