Programming problems solutions