First you have to learn to program. And then practice a lot. Just practice! And if you don’t understand new topics, don’t worry, just keep trying and someday sooner or later you will reach your goal! Yes, it may be too trivial, but it's true! Now go work!