Freelancer interview question

Algorithm design, efficiency, and data structures