Gen Interview Question

How would I solve practical problem.