SSE| Rippling| Reject
Summary
I was rejected after a Coderpair round at Rippling where I was asked to implement a rule validation system for expenses.
Full Experience
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>)Interview Questions (1)
Expense Rule Validation System
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>)