> The only way you can safely pull off layoffs is if you ensure that anything you do in the company requires the experience of a boot camp. That means that everyone is fungible and you can easily swap them.
This is an interesting way to think of the Leetcode style interview. If you don't require any particular experience and you have built your company's systems in a way that any "competent" developer can join and be effective, layoffs may not be such a big problem.