Magic Trick - Intro to Algorithms