Circular Array Loop Leetcode Problems Html Table