Accenture interview question

Android basic stuff, logical thinking