Infogain interview question

Related to API and db