Fano Labs interview question

four hours coding test, python