TD interview question

simple math questions