Prism Algorithm Problem Example