Fractal Interview Question

Normal aptitude questions like time work, ratio Coding part was also simple