Capital Numbers interview question

OOPS concept, database normalization