KPM Technologies interview question

OOP concepts SQL joins Algorithm to write