Shell interview question

probability theory