Question d’entretien chez Neebal Technologies

Write the code in any language for diamond pattern. and without using pre defined function sort the array.