Double dash it.
y' = 3ax^2 + 2bx -1
y'' = 6ax + 2b
There's a point of inflexion when y'' for the x value.
When y'' = 0, x = -b/3a
We know x = 1, hence -b/3a = 1
3a = -b
The point (1,-2) lies on the curve y = ax^3 + bx^2 -x +5
Subbing it in, you get -2 = a + b - 1 + 5
a+b = -6
-2a = -6
a = 3
b = -9
No guarantees - it's been like 2 months since I've done -any- sort of maths.