Deutsche Bank interview question

Q: Dynamic Problem with proper implementation in any language