Typescript Last Character Javascript Interview Questions