JPMorganChase interview question

Was asked with Java basics, OOP and leetcode medium 2 questions on stack and queue