Jordan Ahli Bank interview question

Write a code that prints the shown shape