Pregunta de entrevista de HealthTap

coding problem similar to leetcode