Question link : https://code.google.com/codejam/contest/4304486/dashboard
Somebody please explain me what they mean by in the problem statement
’ The contestant wins the game if their last word is the last of an alphabetically sorted list of all of the possible last words that could have been produced. ’
Explain it with the example of a testcase from the problem itself.
Thanks in advance.