Viridien Interview Question

solving a cubic equation