Hft Interview Question

How many layers of LUTs are needed for this program.