Astranis interview question

How to parse a stream of varints