My code not working

please either give the code solution or make suitable changes to my program

@harryson you are rotating the array clockwise but it is mentioned in the problem that you have to rotate it anticlockwise.
for this just interchange your two for loops written inside your rotate function and you are good to go. and give spaces while printing.

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.