Medidata Solutions interview question

question on string manipulation, question on how to test vending machine