Pergunta de entrevista da empresa OneTrust

Easy question from leet code