Keypad Lock (reinventing the wheel)

I see your code is a tiny bit more efficient than mine. :stuck_out_tongue:

I will try your approach as it will be a lot easer to maintain in the future.