SolveCubicEquation

for the given cubic equation, find the maxiumum substitute which would result less than a given INteger.