Pergunta de entrevista da empresa JK Tech

asked to write code on sorting an array and identify duplicates in array in any language you are comfortable in.