Quantcast interview question

Very standard spreadsheet processing problem