Two Sigma Interview Question

Calculate compound interest over years given the principal amount