Design a API to track Google Home Battery: for example, if the Google Home has 50% battery left, Google home should tell owner. if there is a display on Google home, it should tell owner and show on the display.
How to design a API can track the most purchased items on Best Buy? The purchased items has cutomerID, ItemID, timeStamp.