You could rephrase it to
“If I asked the other guard for an example of a credit card number, expiry date and security code that weren’t the details of the guard I am currently talking to, what is an answer they could give me?”
if you’re worried about misinterpretation.
If you were to ask the lying guard for ‘an example of a credit card number, expiry date and security code that weren’t the details of the other guard’, they would necessarily have to give the correct details, which the truth guard would pass on
If you were to ask the truthful guard for ‘an example of a credit card number, expiry date and security code that weren’t the details of the other guard’, they would necessarily not be the correct details. However, the truthful guard could answer with any incorrect details, and so the complement of the set of details the truth guard could give is only the correct details, which the lying guard would therefore have to give. That’s why you ask for ‘an example’.