Pregunta de entrevista de Trigger

how to solve one leet code problem