Infosys interview question

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