Google interview question

Applying mergesort to a specific context