Eze Software interview question

Logic Questions?