There are 8 possible outcomes with corresponding winnings:
HHH ==> 1 + 2 + 3 = 6
THH ==> -1 + 2 + 3 = 4
HTH ==> 1 - 2 + 3 = 2
HHT ==> 1 + 2 - 3 = 0
TTH ==> -1 - 2 + 3 = 0
THT ==> -1 + 2 - 3 = -2
HTT ==> 1 - 2 - 3 = -4
TTT ==> -1 - 2 - 3 = -6
Then
[tex]P(X=x)=\begin{cases}\frac18&\text{for }x\in\{-6,-4,-2,2,4,6\}\\\frac14&\text{for }x=0\\0&\text{otherwise}\end{cases}[/tex]