RuleTek interview question

General computer science logic/puzzle type questions