G-Research interview question

a comb. and prob stats question