Debugging Challenge

For this exercise asked a couple of very careless programmers to solve the light keyboard exercise. The result was far from perfect, and now your task is to identify and correct the bugs in their implementation (at least 10 bugs are know to exist).

Solutions