Deloitte interview question

what is ram rom write java program on factorial