Netsmartz interview question

related to basic QA