Rosetta Problems

Find the Sequence of Strings Appeared on the Screen

https://leetcode.com/problems/find-the-sequence-of-strings-appeared-on-the-screen