2022 could be the year of layoffs, owing to tough global macroeconomic conditions. Tech companies are leading in the race off layoffs.