Octopus interview question

Code challenge was must in python using tornado framework.