Mphasis interview question

Basic coding knowledge and behavior