Pregunta de entrevista de Veeva Systems

Leetcode question that was medium difficulty