Eau de Web Interview Question

Some python code to clean and some function to implement