leetcode
392. Is Subsequence
Solution code
Time complexity: O(n)
Space complexity: O(1)