import Foundation
func solution(_ food:[Int]) -> String {
var answer = ""
for index in 1..<food.count {
let foodType = food[index]
let number = foodType / 2
for _ in 0..<number {
answer += "\(index)"
}
}
answer = answer + "0" + answer.reversed()
return answer
}