Block Interview Question

Analysis of certain problem statement