Dallas Interview Question

how to solve a problem