Need help on Java Track: Annalyn's Infiltration Program

I am new to Java and kindly requesting help in fixing the following error. I’m not sure what the error means. And the curly bracket’s all match, meaning there’s no extra one or a missing bracket. Also the error only comes up for Task 4. When I tested Task 1-3 the tests passed. Task 4 is: “Check if the prisoner can be freed”

  1. Please use text/codeblocks for sharing code, not screenshots. Screenshots are harder to read or to copy/paste from. This includes the error message.
  2. The last line of the function doesn’t have a return. If none of the if lines match, the function gets to the end and doesn’t have a return.