Save 50% of your gross salary, invest in index funds, and be patient. You can speed up the process via geo-arbitrage, climbing the career ladder without lifestyle creep, working at a FAANG, being more frugal, or side hustles. Search for FIRE for more details.
It’s not easy by any stretch.