Pergunta de entrevista da empresa Cognizant

Basic questions from programming and probability.