horizontalCuts array in ascending order.verticalCuts array in ascending order.maxHeight to the maximum of the first horizontal cut and the distance from the last horizontal cut to the bottom edge of the cake.horizontalCuts to find the maximum distance between two consecutive cuts, updating maxHeight accordingly.maxWidth to the maximum of the first vertical cut and the distance from the last vertical cut to the right edge of the cake.verticalCuts to find the maximum distance between two consecutive cuts, updating maxWidth accordingly.maxHeight * maxWidth % (10^9 + 7).