Python3 oneliner


#1

return (' '.join(''.join(i) for i in A.split()[::-1] if i!='' )).strip()