Cognitiv interview question

How CNN worked and coding it using python