Braintree Interview Question

Multiple logic questions to end interview.