Aruba Networks interview question

Basic data structures and medium leetcode