Salesforce interview question

Design splitwise and medium level DSA