Cotiviti Interview Question

java ,sql, small puzzle related questions