Domanda di colloquio di Bentley Systems

Dynamic Programming Algorithm coding question