SAP interview question

Leetcode medium difficulty and basic of system design