Pergunta de entrevista da empresa Thales

How to check intersection point of two queues joined.