TD Interview Question

simple math questions