Mediated Interactions beyond the Nearest Neighbor in an Array of Superconducting Qubits