1st of all, it depends on how long you do that. But it mostly depends on how good/bad your metabolism & genetics are. If your genetics are bad, it doesn't matter what you do (healthy or not) & for how long. You'll gain more weight faster as you get older.

2nd of all, eat less than 1,000 calories a diet & as less carbs/calories as you can. & exercise as much as you can.