PathAI interview question

Discrete math, dp, greedy, JSON manipulation