HTC Global Services interview question

factorial program