TDS interview question

Nothing too difficult.