Incedo interview question

merge sort reverse a number diamond pattern