From Brute Force to Brilliance: A 7-Step Framework for Algorithmic Thinking