@kartiksaxena2000 Hey kartik saxena go through this link link
can u please tell what was wrong in my code
@kartiksaxena2000 hey kartik see this case 11111111 your output is 127 but it should be 255