Birthday paradox question

bhaiya ye question kaise hoga

bhai thoda advance math ka question hai
ache se samjhne ke liye refer
https://betterexplained.com/articles/understanding-the-birthday-paradox/