KPMG Interview Question

Programming for using IQueryable to calculate total invoice paid.