Central Cables interview question

Coding language and handling the sql