Flexport Interview Question

A problem to be solved by programming skills