I done all the puzzles and unlocked the code on the official Pokemon Mystery Gift site. Go on PBR and do the following;
CODE = tko3-9jwp-34kl
From the reception desk, select the Profile menu.
Once you are in the Profile menu, select "Profile" again. Then, choose "Self-introduction."
On the message input screen, enter the code EXACTLY as it appears, including the hyphens between the numbers. Once you've entered the code, select "Confirm."
You will be taken back to the Profile menu. Select "OK" at the bottom of the screen
If you entered the code correctly, the receptionist will appear and tell you that you have received a special Mystery Gift. Once you get this message, go to the Shop menu, choose "Mystery Gift," look for the Shocking Secret Gift, select it, then follow the instructions that appear on the screen.
Then transfer to D/P!