Comparing onewire 4x4 keypad password

Appreciate your reply, like i said im not good at c++ a little help how i can make an array would be great.