Strongest fighter problem

code gives perfect output when complie and run but isnt passing any test cases

@Learning_bunny,
Are you sure you even understand the problem, it asks you to print the maximum of k contiguous elements, you are just taking max of 3 consecutive and printing them…???

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.