Calfus Interview Question

SQL based questions like lead lag