參考資訊:
https://www.cnblogs.com/cnoodle/p/13082549.html
題目:

解答:
bool isSubsequence(char* s, char* t)
{
int i = 0;
int j = 0;
int slen = strlen(s);
int tlen = strlen(t);
while ((i < slen) && (j < tlen)) {
if (s[i] == t[j++]) {
i += 1;
}
}
return i == slen;
}