Pergunta de entrevista da empresa Cognizant

Basic programming and probability questions