VassarLabs interview question

solve merge sort and write code