KPMG interview question

Programming for using IQueryable to calculate total invoice paid.