Samsung Electronics Interview Question

How did you solve the problem?