Pergunta de entrevista da empresa Oracle

Ques was on hackerrank. Go from one point to another coordinate in minimum path