Infovision, Inc. interview question

Basic questions with a coding question