Nextyn interview question

Case study was asked to me