Reading an input number and output the same number which has eliminated the second repeated digits
<p>For example,
 if the input number is given as 431138 then output must be 4318,
 if the input number is given as 21324751 then output must be 213475.</p>

<p>could anyone please help me how to solve this...</p>
