WTW Interview Question

I was given a puzzle to solve in a given time.