class Solution {
fun isSubsequence(s: String, t: String): Boolean {
if(s == "") return true
if(t.length < s.length) return false
var sIndex = 0
var tIndex = 0
while(tIndex < t.length){
if(t[tIndex] == s[sIndex]){
tIndex++
sIndex++
if(sIndex == s.length) return true
}
else tIndex++
}
return false
}
}