Sprinklr Interview Question

What is the difference between this two code