Pregunta de entrevista de IBM

They asked 2 Leetcode mediums