Python Every Nth Element Selector Javascript Interview