Block interview question

Analysis of certain problem statement