Axos Bank interview question

Q: create an algorithm to bubble sort balances while removing bad records based on validation rules