As reported: Goldman Sachs Analyst CoderPad round (Bangalore, 2025): a bishop on an 8×8 chessboard; given the start and target coordinates, find the minimum number of moves, or −1 if impossible.
A bishop on an empty 8×8 board moves any number of squares diagonally in one move. Squares are [row, col] with 1 ≤ row, col ≤ 8. Return the minimum number of moves from start to target, or -1 if the target cannot be reached.
Example 1
start = [1,1], target = [8,8]
-> 1 same diagonal
Example 2
start = [1,1], target = [1,3]
-> 2 via [2,2]
Constraints: both squares are on the board.
Code runner format: one JSON value per line: start, then target. Implement minBishopMoves(start, target); the harness prints the integer.