Pergunta de entrevista da empresa Arcot Systems

N-queens problem and some questions on memoization