Question 23If $\alpha,\beta$ and $\gamma$ satisfy $$(x-\alpha)(x-\beta)(x-\gamma)=x^3-18 x^2-122 x+161,$$ find the value of $\alpha^2+\beta^2+\gamma^2$.