H&R Block interview question

Binary to Decimal, Array sort, Bubble sort