Google Interview Question

Coding problem related to lists manipulation