.
The answer in the post by the other tutor is incorrect and is written in absurdist form.
In this problem, the random variable X has the values 0, 1, 2, 3.
The right form for the cumulative distribution function in this problem is
F(x) = 1/8 for x = 0;
F(x) = 1/2 for x = 1;
F(x) = 7/8 for x = 2;
F(x) = 1 for x = 3.