Can you crack the Black Box?
Hi, Community!
And so I continue with publishing of the tasks for the Final round of InterSystems Contest on InterSystems Caché and DeepSee as a part of IT Planet Student Championship in Sochi. This year we had about 2 000 participants in InterSystems Contest.
One of the tasks for the finals was to crack the black box!
Problem description
First of all, download and import the black box:
write ##class(%Studio.Project).InstallFromFile("BlackBox.xml")
Black Box has only one class - ITPlanet.BlackBox and one method - Main. If you call it from a terminal:
write #class(ITPlanet.BlackBox).Main()
it would throw an exception. However, if you call it just right, it would return something slightly more meaningful.
But what? And how do you need to call it?