Path Robotics interview question

coding from scratch an advance topic in ML