Started top-down recursive solution with table