Python Match Case Substring Method Sql Interview Bit