Accenture interview question

Nothing was much difficult, basics should be clear