Urjanet interview question

print the given pattern.