Tanium interview question

Recursion, Leet Code type problems.