HCLTech interview question

Memory allocation basics.