Deutsche Bank interview question

based on common cs topics