Microsoft interview question

Solve integral image Defending shared resources among threads