One of the interview questions that I was asked was :
The small commuter plane has 30 seats. The probability that any particular passenger will not show up for a flight is 0.1, independent of other passengers.
Design a function to get largest m value such that expectedshow[m] = expected number of passengers showing up if 30 + m tickets are sold for a flight and expectedshow[m] ≤ 30.
I could not think of a way to approach this question. Can somebody explain it ?