MAQ Software Interview Question

normalization, recursion, puzzle