Pergunta de entrevista da empresa Deloitte

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