Pregunta de entrevista de Autodesk

Leetcode questions medium difficulty can be found online