part2 (1268B)
1--- Part Two --- 2 3While it appears you validated the passwords correctly, they don't seem to be what the Official Toboggan Corporate Authentication System is expecting. 4 5The shopkeeper suddenly realizes that he just accidentally explained the password policy rules from his old job at the sled rental place down the street! The Official Toboggan Corporate Policy actually works a little differently. 6 7Each policy actually describes two [1m[37mpositions in the password[0m, where 1 means the first character, 2 means the second character, and so on. (Be careful; Toboggan Corporate Policies have no concept of "index zero"!) [1m[37mExactly one of these positions[0m must contain the given letter. Other occurrences of the letter are irrelevant for the purposes of policy enforcement. 8 9Given the same example list from above: 10 11 12 - 1-3 a: [1m[37ma[0mb[1m[37mc[0mde is [1m[37mvalid[0m: position 1 contains a and position 3 does not. 13 - 1-3 b: [1m[37mc[0md[1m[37me[0mfg is [1m[37minvalid[0m: neither position 1 nor position 3 contains b. 14 - 2-9 c: c[1m[37mc[0mcccccc[1m[37mc[0m is [1m[37minvalid[0m: both position 2 and position 9 contain c. 15 16 17[1m[37mHow many passwords are valid[0m according to the new interpretation of the policies? 18