Pergunta de entrevista da empresa Mobileye

Given a grid and two points on the grid, construct an algorithm to light up grid boxes so that they capture the quickest path most accurately.