JPMorganChase interview question

Data structures and algorithms questions on HackerRank.