Astranis Interview Question

How to parse a stream of varints