Freshworks interview question

merge sort algorithm