GCJ 2014: Adding magic_trick Problem.

Signed-off-by: Ajeet Jha <ajeetjha1@gmail.com>