First you have to decide what "is present in" means.
Does it mean that a row contains it:
123
in
456
123
789
Or a column?
123
in
417
528
639
Or both? What about diagonals? Forward only, or does backward count? What if it spans two rows?
123
in
451
236
789
When you have decides that, you can start looking for it.
Looking for a sequence in a longer sequence is pretty easy:
1) Set an variable to the start of the sequence you are searching for: call it
seeker
2) Loop through the long sequence, value by value.
3) Does the value match the current element of
seeker?
3.1) If it does, advance seeker. Is seeker at the end?
3.1.1) If it is, return true - you found it.
3.1.2) If not, continue the loop.
3.2) If not, set
seeker
back to the start of the search sequence.
4) It's not there, return false.
Try it manually, and you'll see what I mean - you should then be able to implement it.