PTC Interview Question

write a code to calculate compound interest questions based on OOP,DBMS