X Interview Question

SQL, DP