Solution to interesting programs