Pergunta de entrevista da empresa Neebal Technologies

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