Cotiviti interview question

Asked to solve 2 SQL Questions? Easy and intermediate