Pergunta de entrevista da empresa ServiceNow

Two leetcode easy questions and javascript knowledge