Pergunta de entrevista da empresa PIMCO

One round robin question, two standard algorithms.