Tanium interview question

A recursive problem like you would see on hackerrank.