Pregunta de entrevista de Movable Ink

Medium leetcode question with understanding of unit testing.