Salesforce interview question

1. Merging intervals medium level leet code 2. another problem was also based on permutation and combination