Spire Global interview question

Coding : Data structures and algorithms