JPMorganChase interview question

Swift Basics Data Structure Algorithm