Better solution than me

Is there Any Better Solution Than me Then please tell me

Hi Ravi
Please provide the link for your code.