I believe you need to write a custom plugin for that. Vanilla Q2A allows you to show the field on the registration form, but doesn't have an option to make it mandatory AFAICS.
Perhaps you can get some pointers from this question.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.