Microsoft interview question

The code assessment was 3 leetcode styled problems through codility. One was improving the performance of a function.