Jewels and Stones
Easy · Hashing · about 5 minutes
Asked at Amazon, Google, Microsoft, Bloomberg, Meta.
Each character of jewels is a type of jewel (case-sensitive, distinct). Each character of stones is a stone you have. Return how many of your stones are jewels.