Bareksa interview question

Create a function to print a pyramid pattern