Question d’entretien chez Tesla

medium leetcode question about the search for an element in the stack.