IXL Learning interview question

Problem solving/logic question