How to make a combination lock in a microcontroller and two leds?

Here’s a simple, reliable combo lock you can build with one microcontroller + two LEDs + two pushbuttons. The two buttons enter the code…