Domanda di colloquio di Tesla

My experience and one leetcode alike question