ThoughtSpot Interview Question

This was a Data Structures implementation question