https://www.codechef.com/viewsolution/29034510
Can someone help with my code
Consider the testcase:
1 5 4 4 4 4 1