Deloitte Interview Question

I was asked to do a math problem