Partners Group interview question

basic SQL , write python with iterative function, and some math questions