Pregunta de entrevista de OneTrust

Easy question from leet code