How to remove repitation

hello @abhisheksingh80511 you can remove repitation by using map .
but what is the need of removing the repetation in this questions code ?

actually i am getting (1,4) nd (4,1) both, so i need to remove it and till now map is not taught.

hey @abhisheksingh80511 see this code then you will be able to this question in this way .


Happy Learning !!

if you feel that your doubt has been cleared please mark this doubt as resolved then .
Happy Learning !!