We have a list of albums from different artists. We need to find at least one triplet where the release times are equally apart. The triplets must be returned as a list, only the ids, in the chronological order, from the oldest to the newest. For example, for this list
We need to find and return either [4, 2, 1] (1994 - 2002 - 2010, exactly 8 years between each of them) or [2, 1, 3] (2002, 2010, 2018).
Remember when I said that only one is enough? Well, actually we need all of them. So, we need to find a way to return all the possible combinations at once.
We discovered a bug in the system that feeds us this data, and sometimes, the year that they provide is wrong. But it's ok, we mark those entries with "isWrong": true, so you can safely ignore them. To test your solution, for this entry
The system that feeds us this albums information just got updated to also include the month of the release! We need to update our system to work with months instead of years (eg. between January 2000 and Februrary 2001 are 13 months). The months come with the values Jan, Feb, Mar, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec. Try to test your code with this new set of data