ARI Simulation interview question

Logic based question on Programming language.