Pergunta de entrevista da empresa Trigger

how to solve one leet code problem