Easy Subsequence Selection (December Long Challenge doubt)

Can anyone help me understand the question as no explanation of the example is given?
I want to know whether characters in A and B appear in the same order as they appear in S or they can occur in a random fashion?

I know the word subsequence have been used but yet can someone just verify?

No clarifications related to ongoing contest problems allowed here.