Pregunta de entrevista de Salesforce

LC question easy and med difficulty