Meta Interview Question

Python replace the none value with last non null value