If a distribution satisfies the following cases
Case 1

Case 2

Then the distribution is called a probability distribution.
In distribution A

For each x but

Hence it is not a probability distribution.
In B

Hence this is not a probability distribution.
In the distribution C

Hence this is not a probability distribution.
In case of D

And for all values of x

Hence D is a valid probability distribution.