Im a bit stuck how to sort a problem Ive been given. Ive been asked to write a function to check a password, Ive written everything else but stuck on the rule
No 4 conservative characters from your previous 2 passwords
So something like a new password "banannas" that checks with "bana332" will fail cause "bana" exists.
Ive got the last 2 entries of passwords stored in an array, but stuck how to compare the passwords with every option.
Anyone got any pointers or sample code?????