Bentley Systems Interview Question

Dynamic Programming Algorithm coding question