Central Cables Interview Question

Coding language and handling the sql