Capgemini Interview Question

Code factorial program and so.e basic Java questions