can you please explain what do we need to output i am not able to get the question
Question not clear
You have to calculate the expectated number of unique elements.
If u do not know the concept of mathematical expectation then first go through it.