Deloitte interview question

Coding question to print duplicates and bubble sort, logical question about directions.