How to compare two integer passwords using array

If you post your code, we might be able to help.