Accenture interview question

2 Coding basic problems were asked