Camelcase Matching

Given a list of query strings and a pattern, determine for each query whether the pattern can be obtained by deleting zero or more lowercase letters. Every uppercase letter in a query must match the next pattern character exactly and cannot be deleted. Return one boolean per query in input order.

Examples
Input: []
Output: 0
Hints

Camelcase Matching

Given a list of query strings and a pattern, determine for each query whether the pattern can be obtained by deleting zero or more lowercase letters. Every uppercase letter in a query must match the next pattern character exactly and cannot be deleted. Return one boolean per query in input order.