How to solve the question which he asked at end of video

How to solve the question which he asked at end of video

char s = ‘w’;
int x = s; // x contain ASCII code of w

to convert ASCII to string eg 98–> “98”
use Interger.toString() method.

Hint to Solution:
If you have written the code for first version, subsequences without ASCII,
you just need to modify it liitle bit.
you need to add one extra recursion call with ASCII code appending in result so far.
figure it out.

Thanks