GET SUBSEQUENCE WITH ASCII VALUE

my output is
[ , a , 97 , b , ab , 97b ]
PLEASE CHECK CODE-