Capgemini interview question

2 java program by giving the scenario.