add sublist exercise

Ported from xpython.