Dear Student,
this question is of higher grade and uses a method of permutation and combination.
However here is the solution for the same.
Let the digits are 1234567
So making group of three digit are
123,213,234,456,712,345, etc
And there will be many such numbers