Tanium Interview Question

A recursive problem like you would see on hackerrank.