r probgram

computing the expect number of time of exceeding 1.
adding leetcode problems