Nagarro interview question

OoP SP and Functions var and dynamic