DP World interview question

Hoisiting, Memoization, Scaling a system.