Google interview question

To create a 2d canvas class