Infosys Interview Question

write a table of 2 using while loop in python oops concept time space complexity DBMS