Niantic interview question

Program and explain an isSubsequence method