Varo Bank Interview Question

Write a parsing algorithm