Size the Combined Audience
Basic SolvedTwo campaigns each reached an audience. Marketing wants the size of the combined, de-duplicated audience — anyone reached by either campaign, counted once.
Implement `solve(Set<String> a, Set<String> b)` to return the number of distinct elements across both sets (the size of their union).
Examples
Input
a = {x, y}, b = {y, z}Output
3Input
a = {a}, b = {a}Output
1Hints
- Copy one set, addAll the other, then read size().
Tests
Your code runs in a secure sandbox against multiple hidden test cases. The problem is solved only when every test passes. Each run is isolated and any data changes are rolled back automatically.