Pergunta de entrevista da empresa Sprinklr

What is the difference between this two code