Pergunta de entrevista da empresa KGI Securities

Birthday paradox, math and programming question