Saturn Infotech interview question

why is a local variable used?