Question d’entretien chez Google

Merge n sorted arrays using an integer stream as the output.