Team Computers interview question

1. Switch Bulb Problem 2. Cake Piece problem