M.C. Dean, Inc. interview question

Calculations