Hotwire interview question

Brain teasers & math questions.