Given two cells on the standard chess board, determine whether they have the same color or not.
Example
For cell1 = "A1" and cell2 = "C3", the output should be
solution(cell1, cell2) = true.

For cell1 = "A1" and cell2 = "H3", the output should be
solution(cell1, cell2) = false.

Input/Output
[execution time limit] 3 seconds (java)
[memory limit] 1 GB
[input] string cell1
Guaranteed constraints:
cell1.length = 2,
'A' ≤ cell1[0] ≤ 'H',
1 ≤ cell1[1] ≤ 8.
[input] string cell2
Guaranteed constraints:
cell2.length = 2,
'A' ≤ cell2[0] ≤ 'H',
1 ≤ cell2[1] ≤ 8.
[output] boolean
true if both cells have the same color, false otherwise.
boolean solution(String cell1, String cell2) {
char c1 = cell1.charAt(0);
char c2 = cell2.charAt(0);
int n1 = Integer.parseInt(cell1.substring(1));
int n2 = Integer.parseInt(cell2.substring(1));
int result = Math.abs(c1 - c2) + Math.abs(n1 - n2);
if (result % 2 > 0) return false;
else return true;
}