Explanation of console.log to show result of function for reorderPens