About AzureAD B2C 's custom policy

I want use the custom policy to realize the function of password reset.
I refer to the relevant documents and have achieved the following results.
秘密質問 and 秘密質問の回答 in Figure 2 is the custom attribute of B2C, but now it is a fixed value written in the relevant XML file.
I want to obtain the 秘密質問 and 秘密質問の回答 attributes of B2C users through the username of the Figure 1, and enter the Figure 3 after 秘密質問の回答 verified.
How should I do?
A and B are defined in C as D and E,
secretQuestion is defined in B2C as 秘密質問.
secretAnwser is defined in B2C as 秘密質問の回答.
I need help and attach relevant documents.
193291-trustframeworklocalization.xml193292-trustframeworkextensions.xml193293-trustframeworkbase.xml193218-b2c-1a-username-trustframeworkextensions.xml193229-b2c-1a-username-securityquestions-passwordreset.xml