Dista interview question

differenece between local and global variable? oops concept