TatvaCare interview question

JS output based, database, system design