Chegg interview question

At onsite interview about puzzle.