Vecna Healthcare interview question

basic sorting, print prime numbers etc