Python Get Index Of Item In Array Literal Javascript Interview