Stride Consulting interview question

Parse this data and solve this business logic without using any external library / framework