The Teacher's Corner: An Extension of the Birthday Problem