Capital One interview question

Design an algorithm to decode passkey.(details were provided to form an algorithm based upon the possible combinations ).