question: private boolean containsCharsInOrder ( String name , String query ) { int iName = 0 , iQuery = 0 ; while ( iName < name . length ( ) && iQuery < query . length ( ) ) { if ( name . charAt ( iName ) == query . charAt ( iQuery ) ) { iName ++ ; iQuery ++ ; } else { iName ++ ; } } return iQuery == query . length ( ) ; }
target:  Check if name contains all the characters of query in order. For example, name 'FooBar' contains query 'FB', but not 'BF'