InterSystems interview question

First step was a TET test on HackerRank