Hexaware Technologies interview question

RDBMS, oop concept, Armstrong number code