SSE| Rippling| Reject
- Posted
- 3 Jun 2025
Summary
I was rejected after a Coderpair round at Rippling where I was asked to implement a rule validation system for expenses.
How it went
Got this question in Coderpair round:
We have a list of expense and rules. Aim is to validate rules for each expense.
Each expense is similar to
{
expenseid: "1"
itemId: "Item1"
expensetype: "Food"
amountInUsd : "250"
sellerType : "restaurant"
SellerName "ABC restaurant"
}List of rules similar to
- Total expense should not be > 175
- Seller type restaurant should not have expense more that 45
- Entertainment expense type should not be charged
Run the rules on expense and flag the rule which do not satisfy. Implement following:
evaluateRule(List<rule> , List<expense>)Questions asked (1)
- 01
Expense Rule Validation System
Data Structures & Algorithms · Medium
We have a list of expense and rules. Aim is to validate rules for each expense.
Each expense is similar to{
expenseid: "1"
itemId: "Item1"
expensetype: "Food"
amountInUsd : "250"
sellerType : "restaurant"
SellerName "ABC restaurant"
}
List of rules similar to- Total expense should not be > 175
- Seller type restaurant should not have expense more that 45
- Entertainment expense type should not be charged
Run the rules on expense and flag the rule which do not satisfy. Implement following:evaluateRule(List<rule> , List<expense>)