2000 is a leap year. So, their birthday can be any day of 366 days in the year. We assume that these 366 outcomes are equally likely. Because both the friends have the same birthday.
∴ Favourable outcomes for their birthday = 1 Hence, P (both have the same birthday)