Domanda di colloquio di Amazon

Simple Bahavioral question with one leetcode medium