Solutions to Sample Programming Problems