All Go Solutions for Average Permutation problem is not accepting

Hi,
The solution to Average Permutation problem is not accepting even with some previously accepted solutions. I’m getting judge error. So, I’m guessing that even if there might be multiple solutions to this problem, the system is accepting only what it’s configured.
Problem link: Average Permutation Practice Problem in 1400 to 1600 difficulty problems

My Code:
package main

import (
“bufio”
“fmt”
“os”
)

func main(){
// your code goes here
solve()
}

func solve() {
reader := bufio.NewReader(os.Stdin)
var count int
fmt.Fscanln(reader, &count)
for i := 0; i < count; i++ {
var n int
fmt.Fscanln(reader, &n)
if n == 3 {
fmt.Println(“3 2 1”)
continue
}
temp := n
for temp > 0{
fmt.Print(temp, " ")
temp -= 2
}
if temp == 0{
temp = 1
} else {
temp = 2
}
for temp <= n {
fmt.Print(temp, " ")
temp += 2
}
fmt.Println()
}
}