here i not able to understand when I am trying to do
right <= str.length why is give 1 at the end
but working fine for right < str.length
if the input is “abc” the length of the string is 3
of I m iterating from 0 to 3 for last character if str[2+1] == ‘\0’