Morgan Stanley Interview Question

birthday problem - probability problem