ByteDance interview question

Some algorithms for bubble sort and recursion