Fractal interview question

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