Google DeepMind interview question

DSA questions Space Time complexity