Accenture interview question

2 Coding questions on basics of programming languages