Diet Plan Performance

None

Example Testcases:

[1,2,3,4,5]
1
3
3
[3,2]
2
0
1
[6,5,0,0]
2
1
5