How do i create a recursive algorithm in java using a set of strings to to check against a user’s…

How do i create a recursive algorithm in java using a set of strings to to check against a user’s input as to whether their string is a palendrome