Pergunta de entrevista da empresa SaaS Labs

pretty simple dsa based question