Peloton Interactive Interview Question

Extract information using perations on a list