Fractal interview question

Technical problem statement to understand logic & subsequent solutioning