Amazon interview question

coding question about merge sorting