Numerator Interview Question

Java collection