Recentemente o time de UX da Alliar viu a necessidade de implementar um sitema de recomendação para mensurar a satisfação dos usuários com o sistema de agendamento de exames. Os dados coletados são guardados em uma lista durante um período de tempo determinado, guardando a nota mais recebida pelos clientes.
Fazer um programa que calcule o número de intervalo que a nota decai de N-1. Ex:
INPUT: [4,3,2,1] OUTPUT: 9 períodos
4 períodos de 1 - [4], [3], [2], [1]
3 períodos de 2 - [4,3], [3,2], [2,1]
2 períodos de 3 - [4,3,2], [3,2,1]