Pregunta de entrevista de General Motors (GM)

coding question from leetcode. use this as practice