Design a backend in-memory database to store temperature readings from a thermostat device. Each reading is a pair of [timestamp (format: YYYY-MM-DD HH:MM:SS), temperature (float, e.g. 24.6)]. The database must support two query types efficiently: 1. Point query: return the temperature at an exact timestamp t1. 2. Range query: return…