UBS Interview Question

Brain teaser to calculate a large sum