Findem Interview Question

Recursive json flattening, finding unique values in intervals