Accenture interview question

Maximum questions was with code snippet. Asked to write some methods using rest APIs.