Chimney step flashing goes under the shingles overlapping the courses so any water that gets under the shingles will be shed off the roof. The step flashing should be completely covered by the asphalt shingles. Where the step flashing contacts the chimney is where leaks occur most often.
Here is a starting place for you to understand how to properly flash a roof:
GOOD LUCK TO YOU!
PS .... Remember to provide pics when you post and "like" helpful posts from our guys to let them know you got good help.