Bandwidth of a matrix | CodeChef