Flipkart Interview Question

Splitwise machine coding question with groups