Georgia Power interview question

Data Structure question involving leetcode