BNY interview question

another was finding subsequence with only vowels