Braintree interview question

Multiple logic questions to end interview.