Given an incoming stream of characters containing values like $300 and £400, write a function that takes symbol and data stream and returns array of values.
Example getValues("300 £400 300 £400 $30 abvv cvc") returns [400]
Follow up : How will you handle tokens like $$300 and 300. Incoming data is a stream and you have no ability to peek next value.