Round only had 1 questions a hell lot of follow ups. Was completely tired by the end of it.
Example
Grid
[
[ 2, 0, 0, -1],
[ 0, 0, 2, -1],
[ 5, -1, 0, 0],
[ 0, -1, 10, 0]
]
Starting - (0,0)
Ending - (3,3)
Answer-> 9
Path -> (0,0) (1,0) (2,0) (1,0) (1,1) (1,2) (2,2) (3,2) (3,3)
Follow up 1
Moves can be made in diagonal direction
Follow up 2
You are allowed to skip steps while moving.
Moves now include: (x+2,y) (x,y+2) (x-2 ,y) (x,y-2)
Follow up 3
Return the path.
Feedback
I was able to solve till the first 2 follow ups under 30 mins
Took me a lot of to and fro to get the 3rd follow up done (had to add constraints in order get the question done.)