Gapblue interview question

Second largest element python Database schema for a delivery app and some operations on it