Pergunta de entrevista da empresa Anduril

Find minimum distance between 2 items in a list.