Nbyula Interview Question

basic string questions can be done with mapping