hackerrank:project euler : Digit factorial