TIAA Interview Question

basic code to write