Algo++ : Playing with cards

Please explain this question with one more example . I am not able to understand it.

hey @amandahiya.3572, I have already answered this question in some other thraed. Please refer to this Playing with cards-stack.