Prism Software interview question

Basic behavior question in the phone screen