Output for repeating values

What is the expected output if there are repeating integers in the array?
For example, int the question, if the input is :
5
1
1
1
1
4
5
This does the output only have to contain 1 and 4 once or 4 times?

hello @Ramya1706
print all possible pairs

But is repetition allowed?

they didnt meniton any thing about repetetion so i guess no its not allowed

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.