Pregunta de entrevista de Verily

Phone interview for solving a coding question (Medium level difficulty)