Check Subsequence Hackerrank Solution