WebKul interview question

write a python code to print the given pattern.