Properties:
If a numbers ends with digits 1, 4, 5, 6 or 9, its cube will have the same ending digit.
If a number ends with 2, its cube will end with 8.
If a number ends with 8, its cube will end with 2.
If a number ends with 3, its cube will end with 7.
If a number ends with 7, its cube will end with 3.
From the above properties, we get:
Cube of the number 77774 will end with 4.