Pregunta de entrevista de Charlie Health

Medium hard coding question in LC