First Position of Target(LintCode 14):

Problem