Infosys interview question

SDLC, agile vs waterfall model , local variable vs global variable with code