Vector interview question

Design a solution to a given problem