Pergunta de entrevista da empresa Google

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