encodeQA function

Encode QA Conditions to Integers