Peloton Interactive interview question

Extract information using perations on a list