Domanda di colloquio di BNP Paribas

they asked me to write one sort array code then he asked me which sorting technique should be used and why and basic java question