Cargobase interview question

How to optimize the system and some architectural design.