Amadeus interview question

Define time and space complexity