Doubt in concept of maximum elemnet in every window of 3 element

here we are finding the maximum of every three element right?So the output should be {3,3,4,5,5,5,6}?please tell am I correct or not

hello @supratik260699,
pls mention the test case

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.