Meta Interview Question

Leet code question, hard difficulty level, recursion.