Solultion to Magical Puzzle