Pregunta de entrevista de ThoughtSpot

Versioning using stacks and solve get version with O(1) complexity