MiQ interview question

weighted Average problem using real life scenario