#include #include #include using namespace std; void swap(int& a, int& b) { int x=a; a=b; b=x; } vector returnvector(std::vector& theVector) { return theVector; } void generateAllPermutations(std::vector& toBePermuted, unsigned int nextIndex) { if (nextIndex==toBePermuted.size()) { returnvector(toBePermuted); return; } for (unsigned int i=nextIndex; i& toBePermuted) { generateAllPermutations(toBePermuted, 0); } string canConstruct(vector a) { int sum=0; generateAllPermutations(a); vector b; for(int i=0;i> t; for(int a0 = 0; a0 < t; a0++){ int n; cin >> n; vector a(n); for(int a_i = 0; a_i < n; a_i++){ cin >> a[a_i]; } string result = canConstruct(a); cout << result << endl; } return 0; }