Total Number Of Leetcode Problems Javascript Substring From Right