Programming problems and solutions