JoinQuant interview question

basic questions in probability and CS