Problem-solving solution for internship application. The solution is flexible enough to determine the value of any cell in the grid specified by the pattern provided in the specification.
javac CTC.java
java CTC
Written and tested on Ubuntu OS with Java JDK-21 installed but should work well for JDK-14 and newer perhaps some older versions too