Seems like one of those pointless exercises like add two numbers without using +

It seems the OP is lumbered with a tutor who thinks magic tricks is how you teach programming.