String Path Compression
Problem overview from a real Stripe interview:
Reduce slash and dot-separated strings into first-count-last abbreviations. Handle Stripe's minor-part limit by merging trailing segments in O(n) time.
Check more interview questions and experiences about Stripe
