Meesho interview question

they asked me to implement a expense distribution app functions.