Java R&D interview question

How to make custom models using Flask?