Losing all the weight first and then working out?

I was wondering what's more effective? Like I was thinking for a month changing my diet and shed some lbs and then doing exercises along with the diet after a month...what do you guys suggest?
Losing all the weight first and then working out?
Post Opinion