Domanda di colloquio di Cognizant

Basic questions from programming and probability.