0058-length-of-last-word/0058-length-of-last-word.java
<reponame>subodh30/codeclass Solution {
    public int lengthOfLastWord(String s) {
        String[] arr = s.trim().split(" ");
        return arr[arr.length - 1].length();
    }
}