Pregunta de entrevista de Cargill

JavaScript related question and 2 DSA question