Amazon interview question

In coding round a simple program was given and asked about time and space complexity. Questions on Restful services and previous projects Scenario based questions