Cortello's Riddle

Definately works, completed it my self.