Phenom Interview Question

What's did you come with this solution