Pergunta de entrevista da empresa SAP

Fibonacci LeetCode question with DP optimization