ASMPT interview question

A case study and provide a solution,