N ta elementli arr massivi berilgan. Musbat va manfiy elementlar sonini "pos=<musbatlar soni>, neg=<manfiylar soni>" ko'rinishidagi satr sifatida qaytaring (nollar hisoblanmaydi).
func countPosNeg(N int, arr []int) string {
// ...
}
Input: N=6, arr=[3,-7,2,-9,1,8]
Output: "pos=4, neg=2"
Input: N=5, arr=[-5,15,-8,20,-12]
Output: "pos=2, neg=3"
Input: N=4, arr=[1,2,3,4]
Output: "pos=4, neg=0"
pos va neg.fmt.Sprintf("pos=%d, neg=%d", pos, neg) bilan yasang.