Pergunta de entrevista da empresa Xtreme Softech

I. Percentage ,Simple Interest ,Time speed Dist, Profit Loss and average II. Remove all duplicate characters from a string except the first occurrence. E.g. "JAJJAVAV" O/P : "JAV"