Sprinklr interview question

What is the difference between this two code