Spiral Print - Clockwise

The website is not accepting the code that I have written according to the logic explained in the given video of this course. It is accepting the code when I write (sr <= er) & (sc <= ec), whereas in the given video it was explained according to (sr < er) & (sc < ec). Kindly recheck & tell which one of the logics is actually correct. The code written by me is as follows :