Epicor Software interview question

Java/python coding on scenario provided by interviewer