Finding int within a int?


Could someone give me some guidance on ho i should go about solving this problem.


I need to find the indexes that int A is within int B, for example;

A: 53 and B: 1953786

Would return 2

Any hints welcome
Finding int within a int?
===



Could someone give me some guidance on ho i should go about solving this problem.


I need to find the indexes that int A is within int B, for example;

A: 53 and B: 1953786

Would return 2

Any hints welcome