Amol Technologies Interview Question

Write a code to print diamond pattern