This calculates the value of a list for the sigma game from the 2013 Iverson Exam.