Domanda di colloquio di Deutsche Bank

Q: Dynamic Problem with proper implementation in any language