Forward interview question

Describe the data structures and algorithms you used in your solution.