Following is the code of the symAcrossHorAxis(width: Int, height: Int, x: Int, y: Int) function, where width and height are the width and height of an image respectively, and (x, y) is the position of a pixel (x can be from 0 to width - 1 and y from 0 to height - 1). This function prints the position of the symmetrical pixel across the image's horizontal axis.
Your task is to complete the code so that the function works correctly.
The input is read in main() and then passed to our function.