Factorial hackerearth solutions You have been given a positive integer N.