American Express Interview Question

Logical and reasoning and SQL related questions