Upstart Interview Question

code a principal interest calculator