Java Interview Programs On Arrays And Strings Leetcode 1508