Axos Bank Interview Question

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