Qubole Interview Question

Covered coding and logic