A solution to letter lock picking problem: http://puzzles.bostonpython.com/lock.html