Magic Trick solutions

Magic Trick was solved using Julia by 6 contestants. Solution sizes: average 827 bytes (shortest: 492; longest: 1155).