I only remember learning how to factor 2nd degree polynomials, but I don't have a straight method into factoring something like $y^3-32y+64$ into $(y-4)(y^2+4y-16)$.

Would appreciate some help into figuring out a way to do so for general problems like these, thanks in advance!