Fractal interview question

Aptitude and Technical