Solutions to previous exams in Java and C# in depth