Pergunta de entrevista da empresa Waymo

The question involved integer arrays. Do not remember the question exactly.