BaxEnergy interview question

A very simple algorithm question.