WARNING: A command line option has enabled the Security Manager
WARNING: The Security Manager is deprecated and will be removed in a future release
java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at line 48, java.base/java.lang.StringLatin1.charAt
at line 1512, java.base/java.lang.String.charAt
at line 16, Solution.isSubsequence
at line 54, DriverSolution.helper
at line 87, Driver.main
Anyone knows how to solve this, I'm getting this error for many programs but don't know how to fix it.