You’re welcome bro.
Ok @ramini , your output for 66666666666666666 is coming -1 which is wrong
@spp___ There’s no single digit input in this question. Read the constraints carefully.
2<= n <= 10^5
n= no.of digits the number has !!!