Pregunta de entrevista de Qualcomm

Leetcode easy-medium question coded live with screen shared.