Capgemini interview question

local variable and global variable oops concept