Varo Bank interview question

Write a parsing algorithm