balena interview question

Promises, parsing string, simple algorithms