Leetcode-like Platform

I am wondering if I can create a coding platform like Leetcode using replit? My goal is to build an editor, on the left there would be question, on the right coding area, the question, answer, hint, test cases should be fetched from the database I define and populated on replit, then the user should be able to write and run the code in the coding area, and display the result. Is there a possibility to do this using replit? And what would be cost for each code running? This needs to be done in Python and SQL.

You can use something like Monaco or CodeMirror (what Replit uses) for the editor.