This is much easier to achieve at big tech companies in the US than you think. Look at levels.fyi and you'll see many examples of people with only a few years of experience making $300k. I personally know many people making that much three years after graduating from a coding bootcamp, and a few people who make $450k-$550k after only a couple more years than that.