Is Real Estate Wholesaleing is Halal or Not?

Is real estate wholesaling halal?
If not . Then why?

And what is the way for investing in Real Estate