Aqualink interview question

Basic programming and then theoretical questions.