Pergunta de entrevista da empresa Tipalti

Find the closet connection between 2 persons (unweighted graph question)