P3 Group interview question

How would you solve a specific problem in C?