Lyft interview question

Draw squares on the screen programmatically.