Medidata Solutions Interview Question

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