Healogics interview question

Basic stuff