Pergunta de entrevista da empresa Anonymous

Basic apptitude and coding questions For coding they ask count the number digit in a number and make the half of array to ascending or descending order