Computer Science Assignment – problem solving