UBS Interview Question

SQL window function Python lambda