[circular list] Started the purely function solution