Domanda di colloquio di General Motors (GM)

They asked two technical questions, LeetCode Easy