Accenture Interview Question

2 Coding questions on basics of programming languages