Aptean interview question

Saas model