Pergunta de entrevista da empresa Nuro

How tell if a polygon is closed