Question d’entretien chez General Motors (GM)

coding question from leetcode. use this as practice