Meta interview question

Python replace the none value with last non null value