Wipro interview question

calculate probability, grammar tested, etc