Searce Interview Question

Puzzle solving