KGI Securities Interview Question

Birthday paradox, math and programming question