Pregunta de entrevista de Axos Bank

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