Andy interview question

complete the code for a^b draw the database structure for twitter like software