Domanda di colloquio di Microsoft

My first question was very specific to Java/C# where my main language was with JavaScript, I was asked about to implement threadpooling in a language of choice which is very java specific where JavaScript is a single threaded language so it didnt make any sense. The second question was the leetcode question I was asked this leet code question https://leetcode.com/problems/rotate-image/ , rotating a 2D matrix clockwise, good luck figuring out how to solve it in your brain let alone writing it in code.