How to compare user responses with those in the bank?(Password Reset)

How do I compare the responses of users of the security question to those of the bank, considering that I am using an API to compare?