Pattern doublesided arrow

what would be the output if 1 is given as input?

test case 4 is giving wrong answer.

hey @Himanshu-Sajwan-2271264282963988 for input =1, output should be 1.