Simio interview question

implementation of merge sort